package com.bookocean.infrastructure.persistence.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author gaoxing
 * @date 2025-08-16 10:32:59
 */
@Data
@TableName("daily_quote_po")
public class DailyQuotePO {

    /**
     * 主键 ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 内容
     */
    @TableField(value = "content")
    private String content;

    /**
     * 书名
     */
    @TableField(value = "book_title")
    private String bookTitle;

    /**
     * 作者
     */
    @TableField(value = "author")
    private String author;

    /**
     * 提交人
     */
    @TableField(value = "submitted_by")
    private String submittedBy;

    /**
     * 提交时间
     */
    @TableField(value = "submitted_at")
    private LocalDateTime submittedAt;

    /**
     * 最大长度
     */
    @TableField(value = "max_length")
    private Integer maxLength;

}
